package com.zzyl.nursing.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

import java.time.LocalDateTime;

import com.zzyl.nursing.domain.Reservation;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * 预约信息Mapper接口
 * 
 * @author ruoyi
 * @date 2025-08-02
 */
@Mapper
public interface ReservationMapper extends BaseMapper<Reservation>
{
    @Select("select * from reservation where status = 2 and update_by = #{userId} and update_time between #{startTime} and #{endTime}")
    Integer getCountById(@Param("userId") Long userId,@Param("startTime") LocalDateTime startTime,@Param("endTime") LocalDateTime endTime);
}
